package org.gaaidou.ptarmigan.server.protocol;

import java.util.Map;
import java.util.StringJoiner;


public record HttpRequest(String method, String path, String version, Map<String, String> header, String body) {

    @Override
    public String toString() {
        return new StringJoiner(", ", HttpRequest.class.getSimpleName() + "[", "]")
                .add("method='" + method + "'")
                .add("path='" + path + "'")
                .add("version='" + version + "'")
                .add("header=" + header)
                .add("body='" + body + "'")
                .toString();
    }
}
